package com.fw.system.web.model.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 装备商品表
 * </p>
 *
 * @author  
 * @since 2021-11-24
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class TbGuns extends Model<TbGuns> {

    private static final long serialVersionUID = 1L;

    @TableId("id")
    private String id;

    /**
     * 装备名称
     */
    @TableField("guns_name")
    private String gunsName;

    /**
     * 详情描述
     */
    @TableField("guns_content")
    private String gunsContent;

    /**
     * 装备参数
     */
    @TableField("guns_param")
    private String gunsParam;

    /**
     * 封面图片，多个逗号隔开
     */
    @TableField("img_url")
    private String imgUrl;

    /**
     * 装备价格
     */
    @TableField("amount")
    private BigDecimal amount;

    /**
     * 当前市场指导价
     */
    @TableField("z_amount")
    private BigDecimal zAmount;

    /**
     * 库存
     */
    @TableField("guns_num")
    private Integer gunsNum;

    /**
     * 利润金额
     */
    @TableField("money_amount")
    private BigDecimal moneyAmount;

    /**
     * 所属vip等级
     */
    @TableField("guns_level")
    private Integer gunsLevel;

    /**
     * 购买后多长时间卖出可以
     */
    @TableField("buy_hour")
    private Integer buyHour;

    /**
     * 0下架 1上架
     */
    @TableField("is_type")
    private Integer isType;

    /**
     * 创建时间
     */
    @TableField("create_time")
    private LocalDateTime createTime;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
